<?php
 /**
 +------------------------------------------------------------------------------
 * Html辅助类
 +------------------------------------------------------------------------------
 * @Version  2.2
 * @Author   WangXian
 * @E-mail    admin@loopx.cn
 * @package  ephp
 * @FileName  Html.class.php
 * @Creation  date 2010-10-17
 * @Modified  date 2010-10-17
 +------------------------------------------------------------------------------
 */
class Html
{
	/**
	 * html下拉框，选中
	 */
	public static function selected($str1,$str2)
	{return $str1 == $str2 ? 'selected':'';}
	
	/**
	 * html复选框，选中
	 */
	public static function checked($str1,$str2)
	{return $str1 == $str2 ? 'checked':'';}
	
	/*
	 * htmlspecialchars()的别名
	 */
	public static function H($str)
	{ return htmlspecialchars($str);}
}

/* End of file Html.class.php */
/* Location: Html.class.php */